package com.foreveross.dao;

import java.util.List;

import net.sf.json.JSONArray;

import com.foreveross.vo.SysRole;

public interface SysRoleManagerDAO {

	public <T extends Object> void save(T entity) throws Exception;

	public <T> void remove(T entity) throws Exception;

	public Object findById(Class clazz, String id) throws Exception;

	public Object findByIntId(Class clazz, int id) throws Exception;

	public <T extends Object> T updateObject(T t) throws Exception;
	
	public <T> T updateObject(T t,String id) throws Exception;

	public List<SysRole> findSysRoleList(String name, int pageIndex,
			int pageSize) throws Exception;

	public long findSysRoleListCount(String name) throws Exception;

	public void deleteSysRole(String id) throws Exception;

	public JSONArray getUserRoleList(String userId) throws Exception;

}